using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using Bussiness.Config;     
using Bussiness.Entity;
namespace Bussiness.ManagerBase
{
                

     public abstract class Vw_aspnet_ProfilesManagerBase
    {
        public Vw_aspnet_ProfilesManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>Vw_aspnet_ProfilesEntity</returns>
        public Vw_aspnet_ProfilesEntity Insert(Vw_aspnet_ProfilesEntity obj)
        { 
            return (Vw_aspnet_ProfilesEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>Vw_aspnet_ProfilesEntity</returns>
        public Vw_aspnet_ProfilesEntity Update(Vw_aspnet_ProfilesEntity obj)
        { 
            return (Vw_aspnet_ProfilesEntity)Adapter.Update(obj);             
        }
 
 
        public Vw_aspnet_ProfilesEntity Delete(Vw_aspnet_ProfilesEntity obj)
        { 
            return (Vw_aspnet_ProfilesEntity)Adapter.Delete(obj);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien DataSize duoc set trong object
        /// </summary>
        /// <returns>Vw_aspnet_ProfilesEntity</returns>
        public Vw_aspnet_ProfilesEntity DeleteByDataSize (Vw_aspnet_ProfilesEntity obj)
        { 
            return (Vw_aspnet_ProfilesEntity)Adapter.DeleteByField(obj,"DataSize");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien DataSize 
        /// </summary>
        /// <returns>Vw_aspnet_ProfilesEntity</returns>
        public Vw_aspnet_ProfilesEntity DeleteByDataSize (int DataSize )
        { 
            Vw_aspnet_ProfilesEntity obj = new Vw_aspnet_ProfilesEntity();
            obj.DataSize = DataSize;  
            return (Vw_aspnet_ProfilesEntity)Adapter.DeleteByField(obj,"DataSize");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>Vw_aspnet_ProfilesEntity</returns>
        public Vw_aspnet_ProfilesEntity DeleteByLastUpdatedDate (Vw_aspnet_ProfilesEntity obj)
        { 
            return (Vw_aspnet_ProfilesEntity)Adapter.DeleteByField(obj,"LastUpdatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien LastUpdatedDate 
        /// </summary>
        /// <returns>Vw_aspnet_ProfilesEntity</returns>
        public Vw_aspnet_ProfilesEntity DeleteByLastUpdatedDate (DateTime LastUpdatedDate )
        { 
            Vw_aspnet_ProfilesEntity obj = new Vw_aspnet_ProfilesEntity();
            obj.LastUpdatedDate = LastUpdatedDate;  
            return (Vw_aspnet_ProfilesEntity)Adapter.DeleteByField(obj,"LastUpdatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>Vw_aspnet_ProfilesEntity</returns>
        public Vw_aspnet_ProfilesEntity DeleteByUserId (Vw_aspnet_ProfilesEntity obj)
        { 
            return (Vw_aspnet_ProfilesEntity)Adapter.DeleteByField(obj,"UserId");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UserId 
        /// </summary>
        /// <returns>Vw_aspnet_ProfilesEntity</returns>
        public Vw_aspnet_ProfilesEntity DeleteByUserId (Guid UserId )
        { 
            Vw_aspnet_ProfilesEntity obj = new Vw_aspnet_ProfilesEntity();
            obj.UserId = UserId;  
            return (Vw_aspnet_ProfilesEntity)Adapter.DeleteByField(obj,"UserId");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public Vw_aspnet_ProfilesEntity Select(Vw_aspnet_ProfilesEntity obj)
        { 
            return (Vw_aspnet_ProfilesEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(Vw_aspnet_ProfilesEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(Vw_aspnet_ProfilesEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new Vw_aspnet_ProfilesEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new Vw_aspnet_ProfilesEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<Vw_aspnet_ProfilesEntity> SelectAllLST()
        { 
            return  (List<Vw_aspnet_ProfilesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new Vw_aspnet_ProfilesEntity()),new Vw_aspnet_ProfilesEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<Vw_aspnet_ProfilesEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<Vw_aspnet_ProfilesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new Vw_aspnet_ProfilesEntity(),option),new Vw_aspnet_ProfilesEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien DataSize duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDataSize (Vw_aspnet_ProfilesEntity obj)
        { 
            return Adapter.SelectByField(obj,"DataSize");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DataSize duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDataSize (Vw_aspnet_ProfilesEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"DataSize",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DataSize duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_ProfilesEntity></returns>
        public List<Vw_aspnet_ProfilesEntity> SelectByDataSizeLST (Vw_aspnet_ProfilesEntity obj)
        { 
            return  (List<Vw_aspnet_ProfilesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"DataSize"),new Vw_aspnet_ProfilesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DataSize duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_ProfilesEntity></returns>
        public List<Vw_aspnet_ProfilesEntity> SelectByDataSizeLST (Vw_aspnet_ProfilesEntity obj,SelectOptions option)
        { 
            return  (List<Vw_aspnet_ProfilesEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"DataSize",option),new Vw_aspnet_ProfilesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DataSize 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDataSize (int DataSize )
        { 
            Vw_aspnet_ProfilesEntity obj = new Vw_aspnet_ProfilesEntity();
            obj.DataSize = DataSize;  
            return Adapter.SelectByField(obj,"DataSize");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DataSize duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDataSize (int DataSize, SelectOptions option)
        { 
            Vw_aspnet_ProfilesEntity obj = new Vw_aspnet_ProfilesEntity();
            obj.DataSize = DataSize;  
            return Adapter.SelectByField(obj,"DataSize",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DataSize 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_ProfilesEntity> SelectByDataSizeLST (int DataSize )
        { 
            Vw_aspnet_ProfilesEntity obj = new Vw_aspnet_ProfilesEntity();
            obj.DataSize = DataSize;  
            return  (List<Vw_aspnet_ProfilesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"DataSize"),new Vw_aspnet_ProfilesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DataSize duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_ProfilesEntity> SelectByDataSizeLST (int DataSize, SelectOptions option)
        { 
            Vw_aspnet_ProfilesEntity obj = new Vw_aspnet_ProfilesEntity();
            obj.DataSize = DataSize;  
            return  (List<Vw_aspnet_ProfilesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"DataSize",option),new Vw_aspnet_ProfilesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLastUpdatedDate (Vw_aspnet_ProfilesEntity obj)
        { 
            return Adapter.SelectByField(obj,"LastUpdatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLastUpdatedDate (Vw_aspnet_ProfilesEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"LastUpdatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_ProfilesEntity></returns>
        public List<Vw_aspnet_ProfilesEntity> SelectByLastUpdatedDateLST (Vw_aspnet_ProfilesEntity obj)
        { 
            return  (List<Vw_aspnet_ProfilesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LastUpdatedDate"),new Vw_aspnet_ProfilesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_ProfilesEntity></returns>
        public List<Vw_aspnet_ProfilesEntity> SelectByLastUpdatedDateLST (Vw_aspnet_ProfilesEntity obj,SelectOptions option)
        { 
            return  (List<Vw_aspnet_ProfilesEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"LastUpdatedDate",option),new Vw_aspnet_ProfilesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLastUpdatedDate (DateTime LastUpdatedDate )
        { 
            Vw_aspnet_ProfilesEntity obj = new Vw_aspnet_ProfilesEntity();
            obj.LastUpdatedDate = LastUpdatedDate;  
            return Adapter.SelectByField(obj,"LastUpdatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLastUpdatedDate (DateTime LastUpdatedDate, SelectOptions option)
        { 
            Vw_aspnet_ProfilesEntity obj = new Vw_aspnet_ProfilesEntity();
            obj.LastUpdatedDate = LastUpdatedDate;  
            return Adapter.SelectByField(obj,"LastUpdatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_ProfilesEntity> SelectByLastUpdatedDateLST (DateTime LastUpdatedDate )
        { 
            Vw_aspnet_ProfilesEntity obj = new Vw_aspnet_ProfilesEntity();
            obj.LastUpdatedDate = LastUpdatedDate;  
            return  (List<Vw_aspnet_ProfilesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LastUpdatedDate"),new Vw_aspnet_ProfilesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_ProfilesEntity> SelectByLastUpdatedDateLST (DateTime LastUpdatedDate, SelectOptions option)
        { 
            Vw_aspnet_ProfilesEntity obj = new Vw_aspnet_ProfilesEntity();
            obj.LastUpdatedDate = LastUpdatedDate;  
            return  (List<Vw_aspnet_ProfilesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LastUpdatedDate",option),new Vw_aspnet_ProfilesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUserId (Vw_aspnet_ProfilesEntity obj)
        { 
            return Adapter.SelectByField(obj,"UserId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUserId (Vw_aspnet_ProfilesEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"UserId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_ProfilesEntity></returns>
        public List<Vw_aspnet_ProfilesEntity> SelectByUserIdLST (Vw_aspnet_ProfilesEntity obj)
        { 
            return  (List<Vw_aspnet_ProfilesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UserId"),new Vw_aspnet_ProfilesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_ProfilesEntity></returns>
        public List<Vw_aspnet_ProfilesEntity> SelectByUserIdLST (Vw_aspnet_ProfilesEntity obj,SelectOptions option)
        { 
            return  (List<Vw_aspnet_ProfilesEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"UserId",option),new Vw_aspnet_ProfilesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUserId (Guid UserId )
        { 
            Vw_aspnet_ProfilesEntity obj = new Vw_aspnet_ProfilesEntity();
            obj.UserId = UserId;  
            return Adapter.SelectByField(obj,"UserId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUserId (Guid UserId, SelectOptions option)
        { 
            Vw_aspnet_ProfilesEntity obj = new Vw_aspnet_ProfilesEntity();
            obj.UserId = UserId;  
            return Adapter.SelectByField(obj,"UserId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_ProfilesEntity> SelectByUserIdLST (Guid UserId )
        { 
            Vw_aspnet_ProfilesEntity obj = new Vw_aspnet_ProfilesEntity();
            obj.UserId = UserId;  
            return  (List<Vw_aspnet_ProfilesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UserId"),new Vw_aspnet_ProfilesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_ProfilesEntity> SelectByUserIdLST (Guid UserId, SelectOptions option)
        { 
            Vw_aspnet_ProfilesEntity obj = new Vw_aspnet_ProfilesEntity();
            obj.UserId = UserId;  
            return  (List<Vw_aspnet_ProfilesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UserId",option),new Vw_aspnet_ProfilesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_ProfilesEntity></returns>
        public List<Vw_aspnet_ProfilesEntity> SelectWithConditionLST (Vw_aspnet_ProfilesEntity obj)
        { 
            return  (List<Vw_aspnet_ProfilesEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new Vw_aspnet_ProfilesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_ProfilesEntity></returns>
        public List<Vw_aspnet_ProfilesEntity> SelectWithConditionLST (Vw_aspnet_ProfilesEntity obj,SelectOptions option)
        { 
            return  (List<Vw_aspnet_ProfilesEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new Vw_aspnet_ProfilesEntity());
        }

}
}
